package com.toocms.jinjuhang.config

class Constants {

    /**
     * RecyclerView itemType
     */
    object RecyclerViewItemType {
        private const val typePrefix = "recyclerViewItemType"
        const val ITEM_TYPE_ZERO = "${typePrefix}Zero"
        const val ITEM_TYPE_ONE = "${typePrefix}One"
        const val ITEM_TYPE_TWO = "${typePrefix}Two"
        const val ITEM_TYPE_THREE = "${typePrefix}Three"
        const val ITEM_TYPE_FOUR = "${typePrefix}Four"
        const val ITEM_TYPE_FIVE = "${typePrefix}Five"
        const val ITEM_TYPE_SIX = "${typePrefix}Six"
        const val ITEM_TYPE_SEVEN = "${typePrefix}Seven"
        const val ITEM_TYPE_EIGHT = "${typePrefix}Eight"
        const val ITEM_TYPE_NINE = "${typePrefix}Nine"
        const val ITEM_TYPE_TEN = "${typePrefix}Ten"
        const val ITEM_TYPE_ELEVEN = "${typePrefix}Eleven"
        const val ITEM_TYPE_TWELVE = "${typePrefix}Twelve"
        const val ITEM_TYPE_THIRTEEN = "${typePrefix}Thirteen"
    }

    object BundleKey {
        private const val typePrefix = "bundleKey"
        const val KEY_ORDER_STATUS = "${typePrefix}OrderStatus" //订单状态
        const val KEY_IMAGES = "${typePrefix}Images" //图片列表
        const val KEY_POSITION = "${typePrefix}Position" //位置
        const val KEY_URL = "${typePrefix}Url" //网址
        const val KEY_GOODS_ID = "${typePrefix}GoodsId" //商品ID
        const val KEY_QUANTITY = "${typePrefix}Quantity" //数量
        const val KEY_GOODS_ATTR_IDS = "${typePrefix}GoodsAttrIds" //商品属性ID串
        const val KEY_GOODS_ATTR_DESC = "${typePrefix}GoodsAttrDesc" //商品属性字符串
        const val KEY_TITLE = "${typePrefix}Title" //标题
        const val KEY_TYPE = "${typePrefix}Type" //类型
        const val KEY_ZONE_ID = "${typePrefix}ZoneId" //专区ID
        const val KEY_CART_IDS = "${typePrefix}CartIds" //购物车ID串 逗号隔开
        const val KEY_ADR_ID = "${typePrefix}AdrId" //地址id
        const val KEY_ACTION = "${typePrefix}Action" //行为
        const val KEY_ORDER_ID = "${typePrefix}OrderId" //订单ID
        const val KEY_ORDER_SN = "${typePrefix}OrderSn" //订单号
        const val KEY_REFUND_ID = "${typePrefix}RefundId" //退款ID
        const val KEY_ORDER_GOODS_ID = "${typePrefix}OrderGoodsId" //订单商品ID
        const val KEY_ORDER_COMMODITY = "${typePrefix}OrderCommodity" //订单商品
        const val KEY_COMMODITY = "${typePrefix}Commodity" //商品
        const val KEY_POINTS = "${typePrefix}Points" //积分数量
        const val KEY_BALANCE = "${typePrefix}Balance" //余额
        const val KEY_ORGANIZATION_ID = "${typePrefix}OrganizationId" //机构ID
        const val KEY_MEMBERS = "${typePrefix}Members" //用户数
        const val KEY_COMMISSIONER = "${typePrefix}Commissioner" //专员数
        const val KEY_BROKERAGE = "${typePrefix}Brokerage" //专员数
        const val KEY_ORDER_AMOUNTS = "${typePrefix}OrderAmounts" //累计推广金额
        const val KEY_ORDERS = "${typePrefix}Orders" //累计推广订单数
        const val KEY_MEMBER_ID = "${typePrefix}MemberId" //用户ID
        const val KEY_NEWS_ID = "${typePrefix}NewsId" //新闻ID
        const val KEY_ADDRESS = "${typePrefix}Address" //地址
        const val KEY_PAYMENT_SUM = "${typePrefix}PaymentSum" //支付金额
        const val KEY_PARAMS = "${typePrefix}Params" //参数
        const val KEY_LOGISTICS_NUMBER = "${typePrefix}LogisticsNumber" //参数
        const val KEY_INCOME = "${typePrefix}Income"
        const val KEY_VIDEO_ID = "${typePrefix}VideoId" //视频ID
        const val KEY_VIDEO = "${typePrefix}Video" //视频
        const val KEY_ACCOUNT = "${typePrefix}Account" //账号
        const val KEY_OPEN_ID = "${typePrefix}OpenId" //openid
        const val KEY_UNION_ID = "${typePrefix}UnionId" //openid
        const val KEY_AVATAR = "${typePrefix}Avatar" //微信头像（如果是微信授权登录时注册）
        const val KEY_NICKNAME = "${typePrefix}Nickname" //微信头像（如果是微信授权登录时注册）
        const val KEY_VERIFY = "${typePrefix}Verify" //验证码
    }

    object MessengerToken {
        private const val typePrefix = "messengerToken"
        const val TOKEN_MAIN_FILTER = "${typePrefix}MainPosition" //主页显示的位置
        const val TOKEN_REFRESH_BANK = "${typePrefix}RefreshBank" //刷新银行卡
        const val TOKEN_REFRESH_CART = "${typePrefix}RefreshCart" //刷新购物车
        const val TOKEN_REFRESH_ADDRESS = "${typePrefix}RefreshAddress" //刷新地址
        const val TOKEN_REFRESH_BALANCE = "${typePrefix}RefreshBalance" //刷新余额
        const val TOKEN_PAYMENT = "${typePrefix}Payment" //支付方式
        const val TOKEN_ADDRESS = "${typePrefix}Address" //地址
        const val TOKEN_REFRESH_ORDER = "${typePrefix}RefreshOrder" //刷新订单
        const val TOKEN_CARD = "${typePrefix}Card" //选择银行卡
        const val TOKEN_CODE = "${typePrefix}Code" //签约验证码
        const val TOKEN_CODE2 = "${typePrefix}Code2" //支付验证码
        const val TOKEN_LIVE = "${typePrefix}Live" //直播
        const val TOKEN_WXPAY_FENGFU_RESPONSE = "TOKEN_WXPAY_FENGFU_RESPONSE"   // 丰付
    }

    /**
     * Extra
     * 一些杂乱的常量
     * @constructor Create empty Extra
     */
    object Extra {
        /**
         * Evaluate Upload Image Max Number
         * 订单评价上传图片的最大数量
         */
        const val EVALUATE_UPLOAD_IMAGE_MAX_NUMBER = 4

        /**
         * Regain Verify Code Time
         * 重新获取验证码的时长
         */
        const val REGAIN_VERIFY_CODE_TIME = 60 * 1000L

        /**
         *倒计时间隔时间
         */
        const val COUNT_DOWN_INTERVAL = 500L

        /**
         * Sp name Userdata
         * 存储用户数据SP名称
         */
        const val SP_NAME_USERDATA = "TOOCMS_USER_DATA"

        /**
         * 默认ID字符串分割符
         */
        const val DECOLLATOR_DEFAULT = ","


        const val ACTION_VIEW = "view" //查看
        const val ACTION_ACQUIRE = "acquire" //获取

        const val SERVICE_ADDRESS_STATUS_DEFAULT = "1" //默认
        const val SERVICE_ADDRESS_STATUS_NO_DEFAULT = "0" //默认

        const val PAYMENT_TYPE_ORDER = "1" //订单支付
        const val PAYMENT_TYPE_RECHARGE = "2" //充值支付

        const val PRECINCT_TYPE_COMMODITY = "1" //商品
        const val PRECINCT_TYPE_SALVATION = "2" //救助

        const val COMMODITY_TYPE_GENERAL = "1" //普通商品
        const val COMMODITY_TYPE_GET = "2" //领取商品
        const val COMMODITY_TYPE_INTEGRAL = "3" //积分商品

        const val COLLECT_STATUS_YES = "1" //收藏
        const val COLLECT_STATUS_NO = "0" //未收藏

        const val BANK_TYPE_PERSONAGE = "1" //个人银行卡
        const val BANK_TYPE_ENTERPRISE = "2" //个人或企业银行卡

        const val DEFAULT_ADDRESS_YES = "1" //默认
        const val DEFAULT_ADDRESS_NO = "0" //非默认

        const val ADDRESS_TYPE_GENERAL = "1" //普通地址
        const val ADDRESS_TYPE_ORGANIZATION = "2" //机构地址

        const val ORDER_COMMODITY_EVALUATE_STATUS_YES = "1" //已评价
        const val ORDER_COMMODITY_EVALUATE_STATUS_NO = "0" //未评价

        const val REASON_TYPE_CANCELLATION_REASONS = "1" //取消原因
        const val REASON_TYPE_APPLY_SALES = "2" //申请售后

        const val IDENTITY_TYPE_ORGANIZATION = "1" //机构
        const val IDENTITY_TYPE_AMBASSADOR = "2" //大使
        const val IDENTITY_TYPE_COMMISSIONER = "3" //专员

        const val NEWS_TYPE_NEWS = "news" //资讯
        const val NEWS_TYPE_ACTIVE = "active" //活动

        const val ORDER_TYPE_GENERAL = "1" //普通商品订单
        const val ORDER_TYPE_INTEGRAL = "2" //积分商品订单

        const val AGREEMENT_TYPE_USER = "1" //用户协议
        const val AGREEMENT_TYPE_PRIVACY = "2" //隐私协议

    }

    /**
     * 短信验证码标识
     *
     * @constructor Create empty Unique code
     */
    object UniqueCode {
        const val REGISTER = "register" //注册
        const val RETRIEVE = "retrieve" //找回密码
        const val LOGIN = "login" //登录
    }

    /**
     * 三方信息
     */
    object ThirdPartyInfo {
        const val UMENG_APP_KEY = "6373330a88ccdf4b7e65e35b" //友盟key
        const val WECHAT_APP_KEY = "wx80d40232e7565201" //微信key
        const val WECHAT_APP_SECRET = "b7e55ffca76f5ae4810af4f77b82d77a" //微信secret
        const val WECHAT_ORIGINAL_ID = "gh_35e152b04df9" //微信原始ID
    }
}